<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教务管理登录</title>
    <link href="css/login.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
    <h1>登 录</h1>
    <!--    <form action="/JWGLSystem/loginServlet" method="get" id="form">-->
    <!--        <label for="username">用户名</label>-->
    <!--        <input type="text" id="username" name="username" placeholder="username" required>-->

    <!--        <label for="password">密码</label>-->
    <!--        <input type="password" id="password" name="password" placeholder="password" required>-->

    <!--        <input type="submit" value="登录">-->
    <!--        &lt;!&ndash;        <button type="submit">登录</button>&ndash;&gt;-->
    <!--    </form>-->

    <label for="username">用户名</label>
    <input type="text" id="username" name="username" placeholder="username" required>

    <span id="error">账号或密码错误</span>

    <label for="password">密码</label>
    <input type="password" id="password" name="password" placeholder="password" required>

    <input type="submit" id="login" onclick="login()" value="登录">

    <div class="register">
        没有账号? <a href="other/register.html">现在注册</a>
    </div>
    <script src="js/public.js"></script>
    <script src="js/axios.js"></script>
    <script>
        document.onkeydown = function (event) {
            if (event.key == "Enter") {
                console.log(1);
                login();
            }
        }
    </script>
</div>
</body>
</html>
